package com.zw.mes.module.prdctionFlow.mapper;


import com.zw.mes.entity.flow.FlowRoute;
import com.zw.mes.entity.flow.FlowTrans;
import com.zw.mes.module.prdctionFlow.model.HistAppiyModel;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface HistAppiyMapper {

    //历史申请列表加载
    List<HistAppiyModel> findfHistList(HistAppiyModel histAppiyModel);

    //查询需要更新撤销的数据
    FlowTrans findFlowTrans(Integer id);

    //修改撤销的待质检数据状态
    int updateFlowTransStatus(FlowTrans flowTrans);

    //通过外键查询工艺路线需要更新申请质检的数据
    FlowRoute findSelFlowroute(Integer routeId);

    //修改工艺路线表中申请质检数据量
    int updateFlowRuoteApp(FlowRoute flowRoute);
}